<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>With banner</title>
		<link rel="stylesheet" href="../split-pane.css" />
		<!-- The style sheet below is not part of the split-pane plugin. Feel free to use it, or style things your own way. -->
		<link rel="stylesheet" href="../pretty-split-pane.css" />
		<script src="../bower_components/jquery/dist/jquery.min.js"></script>
		<script src="../split-pane.js"></script>

		<style type="text/css">

			html, body {
				height: 100%;
				min-height: 100%;
				margin: 0;
				padding: 0;
			}

			#top-component {
				height: 10em;
				min-height: 5em;
			}

			#my-divider {
				top: 10em;
				height: 5px;
			}

			#bottom-component {
				top: 10em;
				min-height: 8em;
				margin-top: 5px;
			}

			.banner {
				height: 2em;
				line-height: 2em;
				text-align: center;
				background: #eee;
				text-shadow: 1px 1px #fff;
			}

			.content {
				position: absolute;
				top: 2em;
				left: 0;
				bottom: 0;
				right: 0;
			}
			
		</style>

		<script>
			$(function() {
				$('div.split-pane').splitPane();
			});
		</script>
	</head>
	<body>
		<div class="banner">Some banner</div>
		<div class="content">
			<div class="pretty-split-pane-frame"><!-- This div is added for styling purposes only. It's not part of the split-pane plugin. -->
				<div class="split-pane fixed-top">
					<div class="split-pane-component" id="top-component">
						<div class="pretty-split-pane-component-inner"><!-- This div is added for styling purposes only. It's not part of the split-pane plugin. -->
							<p>
								This split pane component is fixed: when re-sizing the browser window, it will
								keep the same height.
							</p>
							<p>
								You can, however, re-size this component by dragging the divider, and it will adjust if
								the bottom component reaches it's <code>min-height</code> (<code>8em</code> in this example).
							</p>
						</div>
					</div>
					<div class="split-pane-divider" id="my-divider"></div>
					<div class="split-pane-component" id="bottom-component">
						<div class="pretty-split-pane-component-inner"><!-- This div is added for styling purposes only. It's not part of the split-pane plugin. -->
							<p>This split pane component is dynamic: when re-sizing the browser window, height will adjust.</p>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>
